import dayjs from "dayjs";
export const indexData = {
  columns: [
    { label: '商品名称', prop: 'name' },
    { label: '单位', prop: 'unit' },
    { label: '商品描述', prop: 'describe', showTooltip: true },
    { label: '配送总量', prop: 'sort_num' },
    { label: '配送时间', prop: 'order', showTooltip: true, slot: true },
  ],
  formList: [
    // { label: '档口/学校', placeholder: '档口/学校', value: 'school', type: 'input' },
    { label: '商品名称', placeholder: '商品名称', value: 'goods_name', type: 'input' },
    { label: '溯源时间', placeholder: '请选择', value: 'created_at', type: 'date' },
  ],
  formValue: {
    goods_name: '',
    created_at: dayjs(new Date()).format('YYYY-MM-DD'),
  },
  indexTableData: []
}

export const detailData = {
  basicInfo: [
    { label: '商品名称', key: 'name' },
    { label: '单位', key: 'unit' },
    { label: '商品描述', key: 'describes' },
    { label: '配送总量', key: 'total_sort_num' },
    { label: '配送时间', key: 'send_time' },
  ]
}
export const foodData = {
  columns: [
    { label: '供应商名称', prop: 'company_name' },
    { label: '联系人', prop: 'name' },
    { label: '手机', prop: 'mobile', showTooltip: true },
    { label: '资质', prop: 'qualification', showTooltip: true, slot: true },
    { label: '区域', prop: 'region' },
  ],
  formList: [
    { label: '供应商名称', placeholder: '供应商名称', value: 'company_name', type: 'input' },
    { label: '联系人', placeholder: '联系人', value: 'name', type: 'input' },
    { label: '区域', placeholder: '区域', value: 'county_id', type: 'select', options: [] },
  ],
  formValue: {
    company_name: '',
    name: '',
    county_id: '',
  },
}